package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HysRoomMapper;
import com.ruoyi.system.domain.HysRoom;
import com.ruoyi.system.service.IHysRoomService;

/**
 * zzService业务层处理
 *
 * @author ruoyi
 * @date 2025-09-25
 */
@Service
public class HysRoomServiceImpl implements IHysRoomService {
    @Autowired
    private HysRoomMapper hysRoomMapper;

    /**
     * 查询zz
     *
     * @param id zz主键
     * @return zz
     */
    @Override
    public HysRoom selectHysRoomById(Long id) {
        return hysRoomMapper.selectHysRoomById(id);
    }

    /**
     * 查询zz列表
     *
     * @param hysRoom zz
     * @return zz
     */
    @Override
    public List<HysRoom> selectHysRoomList(HysRoom hysRoom) {
        return hysRoomMapper.selectHysRoomList(hysRoom);
    }

    /**
     * 新增zz
     *
     * @param hysRoom zz
     * @return 结果
     */
    @Override
    public int insertHysRoom(HysRoom hysRoom) {
        hysRoom.setCreateTime(DateUtils.getNowDate());
        return hysRoomMapper.insertHysRoom(hysRoom);
    }

    /**
     * 修改zz
     *
     * @param hysRoom zz
     * @return 结果
     */
    @Override
    public int updateHysRoom(HysRoom hysRoom) {
        hysRoom.setUpdateTime(DateUtils.getNowDate());
        return hysRoomMapper.updateHysRoom(hysRoom);
    }

    /**
     * 批量删除zz
     *
     * @param ids 需要删除的zz主键
     * @return 结果
     */
    @Override
    public int deleteHysRoomByIds(Long[] ids) {
        return hysRoomMapper.deleteHysRoomByIds(ids);
    }

    /**
     * 删除zz信息
     *
     * @param id zz主键
     * @return 结果
     */
    @Override
    public int deleteHysRoomById(Long id) {
        return hysRoomMapper.deleteHysRoomById(id);
    }
}
